using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

namespace SalienceEngineDemo
{
    public partial class splash : Form
    {
        public splash()
        {
            InitializeComponent();
            string strCopyright = String.Format("Copyright {0} Lexalytics Inc. All rights reserved",System.DateTime.Now.Year.ToString());
            
            Assembly myAssembly = Assembly.GetExecutingAssembly();
            foreach (object oAttribute in myAssembly.GetCustomAttributes(true))
            {
                if (oAttribute.GetType().Equals(typeof(AssemblyCopyrightAttribute)))
                {
                    AssemblyCopyrightAttribute myAttr = (AssemblyCopyrightAttribute)oAttribute;
                    strCopyright = myAttr.Copyright.ToString();
                }
            }
            txtCopyright.Text = strCopyright;

            //Bitmap b = new Bitmap(this.BackgroundImage);
            //b.MakeTransparent(b.GetPixel(1, 1));
            //this.BackgroundImage = b;
        }
    }
}